//
//  launchPlatSprite.h
//  StarBugs
//
//  Created by ?? ? on 12/29/11.
//  Copyright 2011 antisword@playorca.com. All rights reserved.
//

#ifndef __LAUNCH_PLAT_SPRITE_H__
#define __LAUNCH_PLAT_SPRITE_H__

#include "cocos2d.h"

class LineSprite: public cocos2d::CCSprite
{
private:
    virtual void draw();
    cocos2d::CCPoint point1;
    cocos2d::CCPoint point2;
    
public:
    ~LineSprite();
    LineSprite();
    
    void setPos(cocos2d::CCPoint pt1, cocos2d::CCPoint pt2);
    
};

class LaunchPlatSprite: public cocos2d::CCNode
{
public:
    cocos2d::CCSprite * mainSprite;
    cocos2d::CCSprite * arrowSprite;
    cocos2d::CCSprite * bodySprite;
//    cocos2d::CCSprite * shotLineSprite[8];
    cocos2d::CCSprite * shotLineSprite;
    LineSprite * lineSprite[2];
    LaunchPlatSprite(cocos2d::CCPoint pt);
    ~LaunchPlatSprite();
    
    void showAction();
    void shotAction();
    void hideAction();
    void returnAction();
    void setVisableShotLine(bool flg);
    void setAngle(float angle);
    void setScale(float scale);
    void setDistance(float dist);
    void _callHide();
//    void touchBegan(cocos2d::CCPoint pt);
//    void touchMoved(cocos2d::CCPoint pt);
//    void touchEnd(cocos2d::CCPoint pt);
private:
    cocos2d::CCPoint mainPos;
  
};
#endif//__LAUNCH_PLAT_SPRITE_H__